const router = require('koa-router')();
const blogModel = require('../model/blog');
router.get('/detail', async ctx=>{
    var id = ctx.query.id;
    var res = await blogModel.find({_id:id})
    await ctx.render('detail/',{blog:res[0]})
})
module.exports = router;